<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
</head>
<body>

<script>

  //Primise的简便处理形式
  new Promise((resolve, reject) => {
    resolve('我没错');
    // reject('我错了')
  }).then((data) => {
    console.log(data);
  }, err => {
    console.log(err);
  })

</script>

</body>
</html>
